﻿<html>
<head> 
</head>
<body >

<FORM>
<input type="text" value=" " name="txtInput" id="txtInput" >
 

<input name="SubmitFeed" type="submit" value="Get Feed"></FORM>


<?php

if (isset($_POST['SubmitFeed']))
{
 
  extract($_POST);
echo($txtInput); // print your text value

$db = mysql_connect("localhost", "root", "");
echo("connected");
mysql_select_db("rss", $db)
or die(mysql_errno() . ": " . mysql_error() . "<br>");

$sql = "INSERT INTO rss VALUES (' ', ' ','$txtInput',' ',' ',' ',NOW(),NOW(),$db)";

$result = mysql_query($sql, $db_object);


$result = mysql_query($sql, $db);
if(!$result){
echo mysql_error();
exit;
}
// close the connection
mysql_free_result($result); 
mysql_close();
$formvalue = $_POST['input_value'];
}

?>
</body>

</html>
